package com.molichuxing.services.infrastructure.bean;

import java.time.LocalDateTime;

import com.molichuxing.framework.bean.RootBean;

public class OrderBean extends RootBean {
	/**
	 * 订单号 order_code
	 */
	private Long orderCode;

	/**
	 * id
	 */
	private Integer id;

	/**
	 * 订单类型(1： 经销商订单，2：专属里程订单，3：订阅里程订单，4：加购里程订单) type
	 */
	private Integer type;

	/**
	 * 是否删除(0：正常，1：删除) is_delete
	 */
	private Boolean isDelete;

	/**
	 * 创建时间 gmt_create
	 */
	private LocalDateTime gmtCreate;

	/**
	 * 更新时间 gmt_modified
	 */
	private LocalDateTime gmtModified;

	/**
	 * orders_order
	 */
    private static final long serialVersionUID = 1L;

	/**
	 * 订单号
	 * 
	 * @date 2019-08-16 15:52:34
	 * @return order_code 订单号
	 */
	public Long getOrderCode() {
		return orderCode;
	}

    /**
	 * 订单号
	 * 
	 * @date 2019-08-16 15:52:34
	 * @param orderCode
	 *            订单号
	 */
	public void setOrderCode(Long orderCode) {
		this.orderCode = orderCode;
	}

	/**
	 * 
	 * @date 2019-08-16 15:52:34
	 * @return id
	 */
	@Override
	public Integer getId() {
		return id;
	}

	/**
	 * 
	 * @date 2019-08-16 15:52:34
	 * @param id
	 */
	@Override
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * 订单类型(1： 经销商订单，2：专属里程订单，3：订阅里程订单，4：加购里程订单)
	 * 
	 * @date 2019-08-16 15:52:34
	 * @return type 订单类型(1： 经销商订单，2：专属里程订单，3：订阅里程订单，4：加购里程订单)
	 */
	public Integer getType() {
		return type;
	}

    /**
	 * 订单类型(1： 经销商订单，2：专属里程订单，3：订阅里程订单，4：加购里程订单)
	 * 
	 * @date 2019-08-16 15:52:34
	 * @param type
	 *            订单类型(1： 经销商订单，2：专属里程订单，3：订阅里程订单，4：加购里程订单)
	 */
	public void setType(Integer type) {
		this.type = type;
	}

	/**
	 * 是否删除(0：正常，1：删除)
	 * 
	 * @date 2019-08-16 15:52:34
	 * @return is_delete 是否删除(0：正常，1：删除)
	 */
	public Boolean getIsDelete() {
		return isDelete;
	}

    /**
	 * 是否删除(0：正常，1：删除)
	 * 
	 * @date 2019-08-16 15:52:34
	 * @param isDelete
	 *            是否删除(0：正常，1：删除)
	 */
	public void setIsDelete(Boolean isDelete) {
		this.isDelete = isDelete;
	}

	/**
	 * 创建时间
	 * 
	 * @date 2019-08-16 15:52:34
	 * @return gmt_create 创建时间
	 */
	@Override
	public LocalDateTime getGmtCreate() {
		return gmtCreate;
	}

    /**
	 * 创建时间
	 * 
	 * @date 2019-08-16 15:52:34
	 * @param gmtCreate
	 *            创建时间
	 */
	@Override
	public void setGmtCreate(LocalDateTime gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	/**
	 * 更新时间
	 * 
	 * @date 2019-08-16 15:52:34
	 * @return gmt_modified 更新时间
	 */
	@Override
	public LocalDateTime getGmtModified() {
		return gmtModified;
	}

    /**
	 * 更新时间
	 * 
	 * @date 2019-08-16 15:52:34
	 * @param gmtModified
	 *            更新时间
	 */
	@Override
	public void setGmtModified(LocalDateTime gmtModified) {
		this.gmtModified = gmtModified;
	}

	/**
	 *
	 * @mbg.generated
	 */
	@Override
	public boolean equals(Object that) {
		if (this == that) {
			return true;
		}
		if (that == null) {
			return false;
		}
		if (getClass() != that.getClass()) {
			return false;
		}
		OrderBean other = (OrderBean) that;
		return (this.getOrderCode() == null ? other.getOrderCode() == null
				: this.getOrderCode().equals(other.getOrderCode()))
				&& (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
				&& (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
				&& (this.getIsDelete() == null ? other.getIsDelete() == null
						: this.getIsDelete().equals(other.getIsDelete()))
				&& (this.getGmtCreate() == null ? other.getGmtCreate() == null
						: this.getGmtCreate().equals(other.getGmtCreate()))
				&& (this.getGmtModified() == null ? other.getGmtModified() == null
						: this.getGmtModified().equals(other.getGmtModified()));
	}

	/**
	 *
	 * @mbg.generated
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((getOrderCode() == null) ? 0 : getOrderCode().hashCode());
		result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
		result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
		result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
		result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
		result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
		return result;
	}

	/**
	 *
	 * @mbg.generated
	 */
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append(" [");
		sb.append("Hash = ").append(hashCode());
		sb.append(", orderCode=").append(orderCode);
		sb.append(", id=").append(id);
		sb.append(", type=").append(type);
		sb.append(", isDelete=").append(isDelete);
		sb.append(", gmtCreate=").append(gmtCreate);
		sb.append(", gmtModified=").append(gmtModified);
		sb.append(", serialVersionUID=").append(serialVersionUID);
		sb.append("]");
		return sb.toString();
	}
}